import axios from 'axios'

export function request(config = {}) {
  let instance = axios.create({
    baseURL: '/api/',
    timeout: 5000
  })

  return instance(config)
}